package at.ac.tuwien.swa075.telco.hlr.dao.hibernate;

import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
public class HibernateSessionFactory {

	 /** The single instance of hibernate SessionFactory */
	   private static org.hibernate.SessionFactory sessionFactory;
	   private HibernateSessionFactory() {
	   }
	   static {
	      final AnnotationConfiguration cfg = new
	      AnnotationConfiguration();
	      cfg.configure("/hibernate.cfg.xml");
	      sessionFactory = cfg.buildSessionFactory();
	      
	   }
	   public static SessionFactory getInstance() {
		   
		 
	      return sessionFactory;
	   }
	   
}
